package xjtu.sad.zbsj.statistics;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter @Setter
public class WithdrawHistory {
    private int withdraw_id;
    private int  user_id;

    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"//jackson在序列化时间时是按照国际标准时间GMT进行格式化的，而在国内默认时区使用的是CST时区，两者相差8小时。
    )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date withdraw_time;

    private float withdraw_credit;
}
